﻿@using NOAH.CMS.Cache;
@using NOAH.CMS.Repository;

@{
    
    List<Ad> ads = new List<Ad>();
    using (AdRepository adRepository = new AdRepository())
    {
        ads = adRepository.GetAll().Where(x => x.IsPublish.Value).ToList();
    }
}

<div class="cate">
    <div class="cate-title">
        <a href="#">đối tác</a>
    </div>
    <div class="cate-content group">
        <div class="slider1">
            <ul id="mycarousel" class="jcarousel jcarousel-skin-tango">
                @foreach (Ad a in ads)
                { 
                    <li><a href='@a.Url' target="_blank">
                        <img alt="" src='@a.ImageUrl?w=90&amp;h=90&amp;mode=max' /></a>
                    </li>
                
                }
            </ul>
        </div>
    </div>
</div>
